﻿using Newtonsoft.Json;
using SX.Core.EventBus.Util;
using System;

namespace SX.Core.EventBus.Events
{
    public class IntegrationEvent
    {
        public IntegrationEvent()
        {
            MessageMark = this.GetType().Name;
        }

        [JsonProperty]
        public string Id { get; set; }

        [JsonProperty]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 消息标记符号 
        /// </summary>
        public string MessageMark { get; set; }

        /// <summary>
        /// 业务id
        /// </summary>
        public string BusinessId { get; set; }


        public string Module { get; set; } = ConfigHelper.Get("ServiceName");

    }
}
